package com.haitaoit.chengquan.ui.invitation.request;

import com.haitaoit.chengquan.ui.equipment.response.ResponseItem;
import com.haitaoit.chengquan.ui.invitation.request.bean.InvitationCommitBean;
import com.haitaoit.chengquan.ui.invitation.response.InvitationBean;
import com.haitaoit.chengquan.ui.invitation.response.InvitationTypeBean;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * Created by Administrator on 2017/5/17.
 */

public interface IRequest {
    //获取需要修改帖子的信息
    @GET("api/Esther/Getupdate_esther_model")
    Call<InvitationBean> getInvitationData(@QueryMap Map<String, String> map);

    //获取帖子分类列表
    @GET("api/Esther/Getesther_class_list")
    Call<InvitationTypeBean> getInvitationType(@Query("rnd") String rnd, @Query("sign") String sign);

    //获取帖子分类列表
    @GET
    Call<ResponseBody> getImg(@Url String url);

    //修改帖子
    @POST("api/Esther/add_esther")
    Call<ResponseItem> commitTieZi(@Query("id") String id, @Query("user_id") String user_id, @Query("sign") String sign, @Body InvitationCommitBean bean);
}
